package edu.hziee.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import edu.hziee.mapper.StudentCourseMapper;
import edu.hziee.models.StudentCourse;


@Repository
public class StudentCourseDao {

	@Autowired
	private StudentCourseMapper scmapper;
	
	public List<StudentCourse> findAll(){
		return scmapper.findAll();
	}
	
	public List<StudentCourse> findById(int sid){
		return scmapper.findById(sid);
	}
	
	public void delete(String cid){
		scmapper.delete(cid);
	}
}
